<extend name="Layout:layout_content" />
<block name="body_main">
    <taglib name="Common\TagLib\Sohtml"/>
    <form action="{:U('user_save')}" method="post" class="xsui-form" enctype="multipart/form-data">
        <fieldset>
            <div class="xsui-form-field">
                <label>用户名：</label>
                <if condition="$data['user_name']">
                    {$data.user_name}
                    <else/>
                    <input type="text" name="user_name" placeholder="用户名" value="{$data.user_name}" required="required" />
                    <input type="hidden" name="password" value="123456" />
                </if>
            </div>
            <div class="xsui-form-field">
                <label>照片：</label>
                <sohtml:file name="face_url" value="{$data.face_url}" />
            </div>
            <div class="xsui-form-field">
                <label>姓名：</label>
                <input type="text" name="name" value="{$data.name}" placeholder="姓名"  required="required" />
            </div>
            <div class="xsui-form-field">
                <label>职务：</label>
                <input type="text" name="position" value="{$data.position}"  placeholder="职务"  required="required" />
            </div>
            <div class="xsui-form-field">
                <label>电话号码：</label>
                <input type="text" name="telphone" value="{$data.telphone}" placeholder="电话号码" />
            </div>
            <div class="xsui-form-field">
                <label>手机号码：</label>
                <input type="text" name="mobile" value="{$data.mobile}" placeholder="手机号码" />
            </div>
            <div class="xsui-form-field">
                <label>QQ：</label>
                <input type="text" name="qq" value="{$data.qq}" placeholder="QQ号码" />
            </div>
            <div class="xsui-form-field">
                <label>Email：</label>
                <input type="text" name="email" value="{$data.email}" placeholder="电子邮件" />
            </div>
            <div class="xsui-form-field">
                <label>工作承诺：</label>
                <input type="text" name="personal_sign" value="{$data.personal_sign}" placeholder="工作承诺" required="required" size="80" />
            </div>
            <div class="xsui-form-field">
                <label>状态：</label>
                <sohtml:radio name="status" items="1:正常;0:禁用" value="{$data.status|default=1}" required="required" />
            </div>
        </fieldset>
        <button type="submit"><i class="fa fa-save"></i>保存</button>
        <input type="hidden" name="id" value="{$data.id}"/>
    </form>
</block>